﻿<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Import Namespace ="ZLCMS.Business" %>
<%@ Import Namespace ="ZLCMS.Business.Util" %>
<form id="pageForm" runat="server">

    <div class="pageContent">
    
    <div class="pageFormContent" layoutH="60">  
        
        <dl>
            <dt>用户：</dt>
            <dd>
                <asp:dropdownlist id="users"  runat="server" width="120px" 
                    DataTextField="UserName" DataValueField="UserCode">
                    <asp:ListItem Value="00001">User1</asp:ListItem>
                    <asp:ListItem Value="0002">User2</asp:ListItem>
                    <asp:ListItem Value="0003">User3</asp:ListItem>
                </asp:dropdownlist></dd>
        </dl>     
        <dl>
            <dt>分成(不含%)：</dt>
            <dd><asp:textbox id="percent" runat="server" width="120px"></asp:textbox></dd>
        </dl>         
        
	</div>
	
    <div class="formBar">
    <input id="submit_op" name="submit_op" type="hidden" />
	    <ul>
			<li>
	        <div class="buttonActive"><div class="buttonContent"><button  type="button"  onclick="saveUser();" class="close">保存</button></div></div>
            </li>
            
			<li>
		    <div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
			</li>
		</ul>
    </div>
    
    </div>
    </form>
    
<script type="text/javascript">
    function saveUser() {
        dialogResult = {};
        dialogResult.UserName = $('#users').find('option[value=' + $('#users').val() + ']').text();
        dialogResult.UserCode = $('#users').val();
        dialogResult.Percent = $('#percent').val();
    }

</script>